﻿<UserControl x:Class="Gaiocorp.SLMapViewer.MapToolBar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Res="clr-namespace:Gaiocorp.SLMapViewer.Resources">
    <UserControl.Resources>
        <Res:ApplicationStrings x:Key="ApplicationStrings"></Res:ApplicationStrings>
    </UserControl.Resources>
    <Canvas x:Name="LayoutRoot" Background="Transparent">
        
        <Border x:Name="brdToolbar" BorderBrush="White"  BorderThickness="1" Width="400" Canvas.Left="0" Canvas.Top="0"  Height="28" Visibility="Visible">
            
            <Canvas x:Name="cnvToolbar" Background="Black" Visibility="Visible">
                <Rectangle
                            x:Name="ZoomInImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="1"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="ZoomInImg" 
                                Source="../Images/viewmag+.png" 
                                Canvas.Top="2" Canvas.Left="2"
                                Width="20"
                                Height="20"
                                ToolTipService.ToolTip="{Binding ZoomInTT, Source={StaticResource ApplicationStrings}}"
                                MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
                <Rectangle
                            x:Name="ZoomOutImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="24"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="ZoomOutImg" 
                                Source="../Images/viewmag-.png" 
                                Canvas.Top="2" Canvas.Left="25"
                                Width="20"
                                Height="20"
                                ToolTipService.ToolTip="{Binding ZoomOutTT, Source={StaticResource ApplicationStrings}}"
                                MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
                <Rectangle
                            x:Name="PanImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="47"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="PanImg" 
                                Source="../Images/pan.png" 
                                Canvas.Top="1" Canvas.Left="48"
                                Width="20"
                                Height="20"
                                ToolTipService.ToolTip="{Binding PanTT, Source={StaticResource ApplicationStrings}}"
                                MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
                <Rectangle
                            x:Name="InitImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="70"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="InitImg" 
                                Source="../Images/init_extent_24.png" 
                                Canvas.Top="2" Canvas.Left="72"
                                Width="20"
                                Height="20"
                                ToolTipService.ToolTip="{Binding FullExtentTT, Source={StaticResource ApplicationStrings}}"
                                MouseLeftButtonDown="Button_MouseLeftButtonDown"
                                MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="PrevImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="94"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="PrevImg" 
                                Source="../Images/previous.png" 
                                Canvas.Top="2" Canvas.Left="95"
                                Width="20"
                                Height="20"
                                ToolTipService.ToolTip="{Binding PrevExtentTT, Source={StaticResource ApplicationStrings}}"
                                MouseLeftButtonDown="Button_MouseLeftButtonDown"
                                MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="SelectImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="118"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="SelectImg" 
                                Source="../Images/14_selectnodes.png" 
                                Width="20"
                                Height="20"
                                ToolTipService.ToolTip="{Binding SelectTT, Source={StaticResource ApplicationStrings}}"
                                Canvas.Top="2" Canvas.Left="119"
                                MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
                <Rectangle
                            x:Name="InfoImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="142"
                            Width="24"
                            Height="24"
                            Fill="LightGray"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="InfoImg" 
                            Source="../Images/info.png" 
                            Canvas.Top="2" Canvas.Left="143"
                            Width="20"
                            Height="20"
                            ToolTipService.ToolTip="{Binding IdentifyTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
                <Rectangle
                            x:Name="TabImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="170"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="TabImg" 
                            Source="../Images/table_20.png" 
                            Canvas.Top="3" Canvas.Left="171"
                            Width="19"
                            Height="19"
                            ToolTipService.ToolTip="{Binding AttrTableTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Button_MouseLeftButtonDown"
                            MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="QueryAttrsImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="194"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="QueryAttrsImg" 
                            Source="../Images/querybyattrs_24.png" 
                            Canvas.Top="3" Canvas.Left="195"
                            Width="19"
                            Height="19"
                            ToolTipService.ToolTip="{Binding QueryByAttrsTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Button_MouseLeftButtonDown"
                            MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="AddPntImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="220"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="AddPntImg" 
                            Source="../Images/pin_24.png" 
                            Canvas.Top="2" Canvas.Left="221"
                            Width="20"
                            Height="20"
                            ToolTipService.ToolTip="{Binding AddPointTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
                <Rectangle
                            x:Name="RemovePntImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="244"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="RemovePntImg" 
                            Source="../Images/remove_pin_24.png" 
                            Canvas.Top="2" Canvas.Left="245"
                            Width="20"
                            Height="20"
                            ToolTipService.ToolTip="{Binding RemovePointTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Button_MouseLeftButtonDown"
                            MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="LegendImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="270"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2" Visibility="Collapsed">
                </Rectangle>
                <Image  x:Name="LegendImg" 
                            Source="../Images/view_detailed.png" 
                            Canvas.Top="2"
                            Width="20"
                            Height="20"
                            Canvas.Left="271" Visibility="Collapsed"
                            ToolTipService.ToolTip="{Binding LegendBtnTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Button_MouseLeftButtonDown"
                            MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="HyperlImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="294"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="HyperlImg" 
                            Source="../Images/hyperlink_24.png" 
                            Canvas.Top="3"
                            Width="19"
                            Height="19"
                            Canvas.Left="296"
                            ToolTipService.ToolTip="{Binding HyperlinkToolTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
                <Rectangle
                            x:Name="MeasureImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="318"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="MeasureImg" 
                            Source="../Images/Measure_24.png" 
                            Canvas.Top="3"
                            Width="19"
                            Height="19"
                            Canvas.Left="319"
                            ToolTipService.ToolTip="{Binding MeasureToolTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
                <Rectangle
                            x:Name="PrintImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="342"
                            Width="24"
                            Height="24"
                            Fill="Black"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="PrintImg" 
                            Source="../Images/print_24.png" 
                            Canvas.Top="3"
                            Width="19"
                            Height="19"
                            Canvas.Left="343"
                            ToolTipService.ToolTip="{Binding PrintBtnTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Button_MouseLeftButtonDown"
                            MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="CreatePntImg_rect"
                            Canvas.Top="1"
                            Canvas.Left="363"
                            Width="24"
                            Height="24"
                            Fill="LightGray"
                            Opacity="1.0"
                            RadiusX = "3"
                            RadiusY = "3"
                            Stroke="Gray"
                            StrokeThickness="2"
                            Visibility="Collapsed" >
                </Rectangle>
                <Image  x:Name="CreatePntImg" 
                            Source="../Images/bookmark_add.png" 
                            Canvas.Top="2" Canvas.Left="364"
                            Width="20"
                            Height="20"
                            ToolTipService.ToolTip="{Binding AddPointTT, Source={StaticResource ApplicationStrings}}"
                            MouseLeftButtonDown="Tool_MouseLeftButtonDown"
                            Visibility="Collapsed">
                </Image>
            </Canvas>
        </Border>
    
        <!--<Border x:Name="brdKioskTools" Canvas.Top="0" Canvas.Left="0">-->
            <Canvas x:Name="cnvKioskTools">
                <Rectangle
                                x:Name="ZoomInImgKiosk_rect"
                                Canvas.Top="2"
                                Canvas.Left="1"
                                Width="40"
                                Height="40"
                                Fill="DarkBlue"
                                Opacity="0.5"
                                RadiusX = "40"
                                RadiusY = "40"
                                Stroke="Gray"
                                StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="ZoomInImgKiosk" 
                                    Source="../Images/zoom_in_fixed.png" 
                                    Canvas.Top="6" Canvas.Left="7"
                                    Width="25"
                                    Height="25"
                                    ToolTipService.ToolTip="{Binding ZoomInFixedTT, Source={StaticResource ApplicationStrings}}"
                                    MouseLeftButtonDown="Button_MouseLeftButtonDown"
                                    MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="ZoomOutImgKiosk_rect"
                            Canvas.Top="45"
                            Canvas.Left="1"
                            Width="40"
                            Height="40"
                            Fill="DarkBlue"
                            Opacity="0.5"
                            RadiusX = "40"
                            RadiusY = "40"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="ZoomOutImgKiosk" 
                                Source="../Images/zoom_out_fixed.png" 
                                Canvas.Top="50" Canvas.Left="7"
                                Width="25"
                                Height="25"
                                ToolTipService.ToolTip="{Binding ZoomOutFixedTT, Source={StaticResource ApplicationStrings}}"
                                MouseLeftButtonDown="Button_MouseLeftButtonDown"
                                MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="ZoomFullImgKiosk_rect"
                            Canvas.Top="88"
                            Canvas.Left="1"
                            Width="40"
                            Height="40"
                            Fill="DarkBlue"
                            Opacity="0.5"
                            RadiusX = "40"
                            RadiusY = "40"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="ZoomFullImgKiosk" 
                                Source="../Images/init_extent_24.png" 
                                Canvas.Top="94" Canvas.Left="8"
                                Width="25"
                                Height="25"
                                ToolTipService.ToolTip="{Binding FullExtentTT, Source={StaticResource ApplicationStrings}}"
                                MouseLeftButtonDown="Button_MouseLeftButtonDown"
                                MouseLeftButtonUp="Button_MouseLeftButtonUp">
                </Image>
                <Rectangle
                            x:Name="AddPinKiosk_rect"
                            Canvas.Top="134"
                            Canvas.Left="1"
                            Width="40"
                            Height="40"
                            Fill="DarkBlue"
                            Opacity="0.5"
                            RadiusX = "40"
                            RadiusY = "40"
                            Stroke="Gray"
                            StrokeThickness="2">
                </Rectangle>
                <Image  x:Name="AddPinKiosk" 
                                Source="../Images/pin_24.png" 
                                Canvas.Top="140" Canvas.Left="10"
                                Width="25"
                                Height="25"
                                ToolTipService.ToolTip="{Binding AddPointTT, Source={StaticResource ApplicationStrings}}"
                                MouseLeftButtonDown="Tool_MouseLeftButtonDown">
                </Image>
            </Canvas>
        <!--</Border>-->
        <Image  x:Name="PanLeftKiosk" 
                Source="../Images/pan_left.png" 
                Canvas.Top="33" Canvas.Left="2"
                Width="40" Opacity="0.5"
                Height="40"
                ToolTipService.ToolTip="{Binding PanLeftTT, Source={StaticResource ApplicationStrings}}"
                MouseLeftButtonDown="Button_MouseLeftButtonDown" MouseEnter="PanLeftKiosk_MouseEnter" MouseLeave="PanLeftKiosk_MouseLeave"></Image>
        <Image  x:Name="PanRightKiosk" 
                Source="../Images/pan_right.png" 
                Canvas.Top="33" Canvas.Left="2"
                Width="40" Opacity="0.5"
                Height="40"
                ToolTipService.ToolTip="{Binding PanRightTT, Source={StaticResource ApplicationStrings}}"
                MouseLeftButtonDown="Button_MouseLeftButtonDown" MouseEnter="PanLeftKiosk_MouseEnter" MouseLeave="PanLeftKiosk_MouseLeave"></Image>
       <Image  x:Name="PanTopKiosk" 
                Source="../Images/pan_up.png" 
                Canvas.Top="33" Canvas.Left="2"
                Width="40" Opacity="0.5"
                Height="40"
                ToolTipService.ToolTip="{Binding PanUpTT, Source={StaticResource ApplicationStrings}}"
                MouseLeftButtonDown="Button_MouseLeftButtonDown" MouseEnter="PanLeftKiosk_MouseEnter" MouseLeave="PanLeftKiosk_MouseLeave"></Image>
       <Image  x:Name="PanDownKiosk" 
                Source="../Images/pan_down.png" 
                Canvas.Top="33" Canvas.Left="2"
                Width="40" Opacity="0.5"
                Height="40"
                ToolTipService.ToolTip="{Binding PanDownTT, Source={StaticResource ApplicationStrings}}"
                MouseLeftButtonDown="Button_MouseLeftButtonDown" MouseEnter="PanLeftKiosk_MouseEnter" MouseLeave="PanLeftKiosk_MouseLeave"></Image>
    </Canvas>
</UserControl>
